<?php if ($this->getParameterValue('list.batch_actions')): ?>
[?php use_helper('Javascript'); ?]
[?php echo form_tag('<?php echo $this->getModuleName() ?>/batchAction', array('id'=>'form_<?php echo $this->getModuleName() ?>', 'name'=>'form_<?php echo $this->getModuleName() ?>')) ?]
<?php endif; ?>
<div id="div_edicion"></div>
<table cellspacing="0" class="sf_admin_list">
<thead>
<tr>
<?php if ($this->getParameterValue('list.batch_actions')): ?>
  <th id="sf_admin_list_th_sf_batch_actions">[?php echo checkbox_tag('foo', 1, 0, array('onclick' => "boxes = document.getElementsByTagName('input'); for(index in boxes) { box = boxes[index]; if (box.type == 'checkbox' && box.className == 'sf_admin_batch_checkbox') box.checked = this.checked } return true;")) ?]</th>
<?php endif; ?>
[?php include_partial('<?php echo $this->getModuleName() ?>/list_th_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>') ?]
<?php
	if ($this->getParameterValue('list.object_actions'))
	{
		if ($this->getParameterValue('list.object_actions_title'))
		{?>
			<th id="sf_admin_list_th_sf_actions"><?php echo $this->getParameterValue('list.object_actions_title','holas') ?></th>
		<?php }
		else
		{?>
			<th id="sf_admin_list_th_sf_actions">[?php echo __('Actions') ?]</th>
		<?php }
	}
?>
</tr>
</thead> 
<tbody>
[?php $i = 1; foreach ($pager->getResults() as $<?php echo $this->getSingularName() ?>): $odd = fmod(++$i, 2) ?]
[?php $namemodule = '<?php echo 'tr_' . $this->getSingularName() ?>' . $<?php echo $this->getSingularName()?>->getId(); ?]
<tr class="sf_admin_row_[?php echo $odd ?]" id="[?php echo $namemodule?]">
[?php include_partial('<?php echo $this->getModuleName() ?>/list_td_batch_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
[?php include_partial('<?php echo $this->getModuleName() ?>/list_td_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
[?php include_partial('<?php echo $this->getModuleName() ?>/list_td_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
</tr>
[?php endforeach; ?]
</tbody>
<tfoot>
<tr><th colspan="<?php echo count($this->getColumns('list.display')) + ($this->getParameterValue('list.object_actions') ? 1 : 0) + ($this->getParameterValue('list.batch_actions') ? 1 : 0) ?>">
<div class="float-right">
[?php if ($pager->haveToPaginate()): ?]
	[?php echo link_to_remote(image_tag(sfConfig::get('sf_admin_web_dir').'/images/first.png'),array('align' => 'absmiddle','url'=>'<?php echo $this->getModuleName() ?>/list?page=1','update'=>'div_panel_contenido','metod'=>'get','script'=>true)) ?]
	[?php echo link_to_remote(image_tag(sfConfig::get('sf_admin_web_dir').'/images/previous.png'), array('align' => 'absmiddle','url'=>'<?php echo $this->getModuleName() ?>/list?page='.$pager->getPreviousPage(),'update'=>'div_panel_contenido','metod'=>'get','script'=>true)) ?]

	[?php foreach ($pager->getLinks() as $page): ?]
		[?php echo link_to_remote($page,array('url'=>'<?php echo $this->getModuleName() ?>/list?page='.$page,'update'=>'div_panel_contenido','metod'=>'get','script'=>true)) ?]
	[?php endforeach; ?]

	[?php echo link_to_remote(image_tag(sfConfig::get('sf_admin_web_dir').'/images/next.png'), array('align' => 'absmiddle','url'=>'<?php echo $this->getModuleName() ?>/list?page='.$pager->getNextPage(),'update'=>'div_panel_contenido','metod'=>'get','script'=>true)) ?]
	[?php echo link_to_remote(image_tag(sfConfig::get('sf_admin_web_dir').'/images/last.png'), array('align' => 'absmiddle','url'=>'<?php echo $this->getModuleName() ?>/list?page='.$pager->getLastPage(),'update'=>'div_panel_contenido','metod'=>'get','script'=>true)) ?]
[?php endif; ?]
</div>
[?php echo format_number_choice('[0] No se encontraron registros|[1] <div id="div_result_list">1</div> registro encontrado|(1,+Inf] <div id="div_result_list">%1%</div> resultados encontrados', array('%1%' => $pager->getNbResults()), $pager->getNbResults()) ?]
</th></tr>
</tfoot>
</table>
